﻿using Microsoft.Win32;
using Wise.TimeWarrior.DTO;

namespace Wise.TimeWarrior.Helpers
{
    /// <summary>
    /// Helper Class used for casting enumeration from SessionSwitchReason to SessionSwitchReasonExtended
    /// </summary>
    public static class SessionSwitchEnumHelper
    {
        /// <summary>
        /// Method Casts SessionSwitchReason to SessionSwitchReasonExtended
        /// </summary>
        /// <param name="reason">SessionSwitchReason</param>
        /// <returns>SessionSwitchReasonExtended</returns>
        public static SessionSwitchReasonExtended ConverToSessionSwitchReasonExtended(SessionSwitchReason reason)
        {
            return (SessionSwitchReasonExtended)((int)reason);
        }
    }
}
